package com.xj.oop1;

public class Teacher extends Person {
    private String edu;
    private String pos;

    public Teacher() {
        System.out.println("Teacher的构造方法");
    }

    public Teacher(String name, int age, String edu, String pos) {
        this.name = name;
        this.age = age;
        this.edu = edu;
        this.pos = pos;
    }

    @Override
    public void intro() {
        System.out.println("我是" + name + ",年龄" + age + "岁,学历" + edu + ",目前职位：" + pos);
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public String getPos() {
        return pos;
    }

    public void setPos(String pos) {
        this.pos = pos;
    }
}
